import Mock from "mockjs";
let url = "http://127.0.0.1:8080";
let banner = [
  require("../../assets/img/banner/banner1.jpg"),
  require("../../assets/img/banner/banner2.jpg")
];
let proList = [
  {
    id:0,
    title:'爱情鲜花',
    title_2:'送 · 让你怦然心动的人',
    b_img:require('../../assets/img/product/b_img.png'),
    list:[
      {
        id:0,
        img:require('../../assets/img/product/pro_1.jpg'),
        title:'爱情 · 一往情深',
        price:'248',
        count:'13.9万'
      },
      {
        id:1,
        img:require('../../assets/img/product/pro_1.jpg'),
        title:'爱情 · Best fot You',
        price:'149',
        count:'2.6万'
      },
      {
        id:2,
        img:require('../../assets/img/product/pro_1.jpg'),
        title:'爱情 · 韩式系列/初心不负',
        price:'229',
        count:'8.2万'
      },
      {
        id:3,
        img:require('../../assets/img/product/pro_1.jpg'),
        title:'爱情 · 韩式系列/初心不负',
        price:'389',
        count:'2.1万'
      },
      {
        id:4,
        img:require('../../assets/img/product/pro_1.jpg'),
        title:'爱情 · 韩式系列/初心不负',
        price:'389',
        count:'167'
      },
      {
        id:5,
        img:require('../../assets/img/product/pro_1.jpg'),
        title:'爱情 · 韩式系列/初心不负',
        price:'198',
        count:'8.8万'
      },
      {
        id:6,
        img:require('../../assets/img/product/pro_1.jpg'),
        title:'爱情 · 韩式系列/初心不负',
        price:'569',
        count:'7.4万'
      },
      {
        id:7,
        img:require('../../assets/img/product/pro_1.jpg'),
        title:'爱情 · 韩式系列/初心不负',
        price:'296',
        count:'5342'
      },
    ]
  },
  {
    id:1,
    title:'送长辈鲜花',
    title_2:'赠 · 父母/恩师/长辈',
    b_img:require('../../assets/img/product/b_img2.png'),
    list:[
      {
        id:8,
        img:require('../../assets/img/product/pro_2.jpg'),
        title:'爱情 · 一往情深',
        price:'248',
        count:'13.9万'
      },
      {
        id:9,
        img:require('../../assets/img/product/pro_2.jpg'),
        title:'爱情 · Best fot You',
        price:'149',
        count:'2.6万'
      },
      {
        id:10,
        img:require('../../assets/img/product/pro_2.jpg'),
        title:'爱情 · 韩式系列/初心不负',
        price:'229',
        count:'8.2万'
      },
      {
        id:11,
        img:require('../../assets/img/product/pro_2.jpg'),
        title:'爱情 · 韩式系列/初心不负',
        price:'389',
        count:'2.1万'
      },
      {
        id:12,
        img:require('../../assets/img/product/pro_2.jpg'),
        title:'爱情 · 韩式系列/初心不负',
        price:'389',
        count:'167'
      },
      {
        id:13,
        img:require('../../assets/img/product/pro_2.jpg'),
        title:'爱情 · 韩式系列/初心不负',
        price:'198',
        count:'8.8万'
      },
      {
        id:14,
        img:require('../../assets/img/product/pro_2.jpg'),
        title:'爱情 · 韩式系列/初心不负',
        price:'569',
        count:'7.4万'
      },
      {
        id:15,
        img:require('../../assets/img/product/pro_2.jpg'),
        title:'爱情 · 韩式系列/初心不负',
        price:'296',
        count:'5342'
      },
    ]
  },
  {
    id:3,
    title:'永生花',
    title_2:'许 · 她一生承诺',
    b_img:require('../../assets/img/product/b_img3.jpg'),
    list:[
      {
        id:16,
        img:require('../../assets/img/product/pro_1.jpg'),
        title:'爱情 · 一往情深',
        price:'248',
        count:'13.9万'
      },
      {
        id:17,
        img:require('../../assets/img/product/pro_1.jpg'),
        title:'爱情 · Best fot You',
        price:'149',
        count:'2.6万'
      },
      {
        id:18,
        img:require('../../assets/img/product/pro_1.jpg'),
        title:'爱情 · 韩式系列/初心不负',
        price:'229',
        count:'8.2万'
      },
      {
        id:19,
        img:require('../../assets/img/product/pro_1.jpg'),
        title:'爱情 · 韩式系列/初心不负',
        price:'389',
        count:'2.1万'
      },
      {
        id:20,
        img:require('../../assets/img/product/pro_1.jpg'),
        title:'爱情 · 韩式系列/初心不负',
        price:'389',
        count:'167'
      },
      {
        id:21,
        img:require('../../assets/img/product/pro_1.jpg'),
        title:'爱情 · 韩式系列/初心不负',
        price:'198',
        count:'8.8万'
      },
      {
        id:22,
        img:require('../../assets/img/product/pro_1.jpg'),
        title:'爱情 · 韩式系列/初心不负',
        price:'569',
        count:'7.4万'
      },
      {
        id:23,
        img:require('../../assets/img/product/pro_1.jpg'),
        title:'爱情 · 韩式系列/初心不负',
        price:'296',
        count:'5342'
      },
    ]
  }
]
// 轮播图路由
Mock.mock(`${url}/banner`, "get", (options) => {
  return {
    code: 1,
    data: banner,
  };
});
//商品列表
Mock.mock(`${url}/product`,'get',options => {
  return{
    code:1,
    list:proList,
    msg:'数据获取成功'
  }
})
